﻿// Jasiu
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;

namespace Global
{
    // Klasa przechowuje dźwięki z gry
    public class Sound
    {
        public static SoundEffect intro;
        public static SoundEffect eatCoin;
        public static SoundEffect death;
        public static SoundEffect eatGhost;
        public static SoundEffect eatBall;

        
        public Sound(ContentManager content)
        {
            intro = content.Load<SoundEffect>(@"sound/pacman_intro");
            eatCoin = content.Load<SoundEffect>(@"sound/pacman_eatCoin");
            death = content.Load<SoundEffect>(@"sound/pacman_death");
            eatGhost = content.Load<SoundEffect>(@"sound/pacman_eatghost");
            eatBall = content.Load<SoundEffect>(@"sound/pacman_eatBall");
        }

        public void Dispose()
        {
            intro.Dispose();
            eatCoin.Dispose();
            death.Dispose();
            eatGhost.Dispose();
            eatBall.Dispose();
        }
    }
}
